package main.foodandallergy;

import ctr.layer.CtrRecipe;

import ctr.layer.CtrUser;
import main.foodanddallergy.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button profileButton = (Button)findViewById(R.id.profile);
        Button recipeButton = (Button)findViewById(R.id.recipetwo);
        Button shoppingButton = (Button)findViewById(R.id.shoppinglist);
        
        profileButton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent profileIntent = new Intent(MainActivity.this, CtrUser.class);
				startActivity(profileIntent);
			}
		});
        
        recipeButton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent recipeIntent = new Intent(MainActivity.this, CtrRecipe.class);
				startActivity(recipeIntent);
			}
		});
        
        shoppingButton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				//Intent shoppingIntent = new Intent(MainActivity.this, CtrShoppingList.class);
				//startActivity(shoppingIntent);
			}
		});
        
    }
}
